package org.example;

import java.util.HashMap;
import java.util.Map;

//2.1获取个人信息(A01)
public class PostDemoA01 {

    public static void main(String[] args) {
        // 构建嵌套JSON结构
        Map<String, Object> data = new HashMap<>();
        data.put("id", "A01");
        data.put("pageindex", "1");
        data.put("pagesize", "100");
        data.put("empid", "10998");
        try {
//            {"data":{"empid":"10998","pagesize":"100","pageindex":"1","id":"A01"},"openid":"000001","timestamp":"20250416102239"}
            String response = sendJsonPostRequest.sendJsonPostRequest(data);
            System.out.println("响应内容：\n" + response);
//            {"errcode":"0","msg":"成功","totalpage":1,"pagesize":100,"pageindex":1,"total":1,"data":[{"empid":"10998","EmpName":"林德贤","DeptID":"100315","DeptName":"","PosID":"","PosName":"","Sex":"","IDType":"","IDentityCard":"","IDCardNo":"","Phone":"","Mobile":"","LinkMan":"","HomeTel":"","Addr":"","isOut":"0","EnrollNumber":"","updatetime":"2024-08-09 15:21:55"}]}
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
}



